﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            text1();
            text2();
            text3();
            Console.ReadKey();
        }
        public static void text1()
        {
            int[] arr = new int[10];
        Random random = new Random();

        int temp = -1;
        bool result = false;
            for (int i = 0; i<arr.Length; i++)
            {
                result = true;
                while (result)
                {
                    result = false;
                    temp = random.Next(1, 11);
                    for (int j = 0; j<i; j++)
                    {
                        if (temp == arr[j])
                        {
                            result = true;
                            break;
                        }
}
                }
                arr[i] = temp;
            }
            for (int i = 0; i < arr.Length; i++)
{
    Console.Write(arr[i] + " ");
}
        }
        public static void text2()
{
    Random random = new Random();
    double num1 = random.NextDouble();
    double num2 = Math.Round(num1, 2);
    int num3 = random.Next(0, 5);
    Console.WriteLine(num2 + num3);
}
public static void text3()
{
    
       Random random = new Random();
    double num1 = random.NextDouble();
    double num2 = Math.Round(num1, 2);
    int num3 = random.Next(4, 7);
    Console.WriteLine(num2 + num3);
}

        }
    }

